/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * TrainingBook
 * Copyright (C) Arnaud Duval 2010 <arnaud.duval@gmail.com>
 * 
 * Projects is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Projects is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _APPLICATION_HPP_
#define _APPLICATION_HPP_

#define PARAMETERS_NUMBER 100

#include <string>


///@class Application
///@brief Defines the properties of the application
class Application
{
    private:
        ///@brief Name of the application
        std::string name;
        ///@brief Version number of the application
        std::string version;
        ///@brief Array of parameters name
        std::string paramNames[PARAMETERS_NUMBER];
        ///@brief Array of parameters value
        std::string paramValues[PARAMETERS_NUMBER];
        ///@brief Array of parameters type
        std::string paramTypes[PARAMETERS_NUMBER];

    
    
    public:
        ///@brief Default constructor
        Application();
        ///@brief Destructor
        ~Application();
        ///@brief Read configuration from a file
        bool ReadConfigurationFile(std::string);
        ///@brief Return value of a given parameters
        std::string GetParameter(std::string);
        ///@brief Return value of a given parameter with integer value
        int GetIntegerParameter(std::string);
        ///@brief Print actual config
        void PrintConfig();
        ///@brief Create a default configuration file
        void CreateDefaultConfigFile(std::string);
       
    
  
  
  
};



#endif
